#include "GAF_Platform.h"

#include <time.h>

namespace GAF
{
	void Platform::Delay(TimeTicks ttSleep)
	{
		static TimeTicks ttNow;
		static TimeTicks ttCur;

		ttNow = GetTimeTicks();
		do
		{
			ttCur = GetTimeTicks();
		}while(ttCur - ttNow < ttSleep);
	}

	TimeTicks Platform::GetTimeTicks()
	{
		return (TimeTicks)clock();
	}
}
